package com.gulimall.product.feign;

import com.gulimall.common.utils.R;
import com.gulimall.product.feign.fallback.SeckillFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author djg
 * @date 2020/9/20
 * @des
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignClientFallback.class)
public interface SeckillFeignClient {
    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
